package com.xmkj.bearuser.membercenter.adapter;

import android.content.Context;

import com.common.retrofit.bean.JiFenDetailsBean;
import com.common.widget.recyclerview.refresh.adapter.CommonAdapter;
import com.common.widget.recyclerview.refresh.adapter.ViewHolder;
import com.xmkj.bearuser.R;

import java.util.List;

/**
 * Create by leo
 * 创建日期：2018/7/16
 * 描述：
 */

public class JifenDetailsAdapter extends CommonAdapter<JiFenDetailsBean> {
    public JifenDetailsAdapter(Context context, List<JiFenDetailsBean> data) {
        super(context, data);
    }

    @Override
    protected void convert(ViewHolder holder, JiFenDetailsBean item, int position) {
            holder.setText(R.id.tv3,item.date);
            holder.setText(R.id.tv4,item.type);
            holder.setText(R.id.tv5,item.get_score);
            holder.setText(R.id.tv6,item.use_score+"");
    }

    @Override
    protected int getItemViewLayoutId(int position, JiFenDetailsBean item) {
        return R.layout.item_jifen_details;
    }
}
